<script>
export default {
  name: "MyButton",
  data() {
    return {}
  },
  methods: {
    handleClick() {
      this.$http.post('test/')
          .then((res) => {

            console.log(res)
            this.$message.warning(res)
          })
    }
  }
}
</script>

<template>
  <el-button
      size="large"
      type="primary"
      plain
      @click="handleClick">clike me
  </el-button>
</template>

<style scoped>

</style>